<!DOCTYPE html>
<html>
<head>
    <#assign secSelect = JspTaglibs["http://www.casic304.cn/secSelect"]/>
    <#assign dicSelect = JspTaglibs["http://www.casic304.cn/dicSelect"]/>
    <meta charset="utf-8">
    <title>筛选批次不合格</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="${ctx}/layui/css/layui.css" media="all"/>
    <link rel="stylesheet" href="${ctx}/qbdmsStatic/iconfont/iconfont.css"/>
    <link rel="stylesheet" href="${ctx}/qbdmsStatic/style/qbdms.css">
    <script type="text/javascript">
        var __ctx = "${ctx}";
    </script>
    <#if isClose == 'true'>
    <style>
        .listBody .qbdms-bodyDiv{padding: 0 }
        body.qbdms-particulars .qbdms-bodyDiv div.layui-table-view-body{padding: 16px}
        .btnformItem{background: none}
        .layui-form-select .layui-input{padding-right: 0}
    </style>
</#if>
</head>
<body class="listBody qbdms-particulars">
<div class="qbdms-bodyDiv">
    <div class="layui-table-view-body qbdms-add-view-body" >
        <#if isClose != 'true'><div class="qbdms-formTitle" >筛选批次不合格 <i class="qbdms-returnOn closeWindow">返回</i></div></#if>
        <form class="formPreview layui-form" requrl="${ctx}/qbdms/wQbdComponentscreen/get" lay-filter="wQbdComponentscreenDataForm">
            <input type="hidden" name="id" placeholder="请输入" autocomplete="off" class="layui-input "
                   maxlength="50" fieldname="id">

            <div class="" style="width: 100%;overflow-x: auto">
                <table class="tableExcel qbdms-zeroTable" width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tbody>
                    <tr id="tbxx">
                    </tr>

                    <tr>
                        <td class="qbdms-zeroTable-lable">密级<span style="color: red;">*</span></td>
                        <td name=''>
                            <@secSelect.sec_select data_src=1 required=true name="secret"/>
                        </td>
                        <td class="qbdms-zeroTable-lable">元器件名称<span style="color: red;">*</span></td>
                        <td name='componentName'></td>
                        <td class="qbdms-zeroTable-lable">元器件型号规格<span style="color: red;">*</span></td>
                        <td name='componentSpec'></td>
                    </tr>
                    <tr>
                        <td class="qbdms-zeroTable-lable">质量等级<span style="color: red;">*</span></td>
                        <td name=''>
                            <@dicSelect.dic name="qualityLevel" nodeKey="zldj" verify="required" reqtext="质量等级是必填项"/>
                        </td>
                        <td class="qbdms-zeroTable-lable">元器件批次号<span style="color: red;">*</span></td>
                        <td name='componentBatchid'></td>
                        <td class="qbdms-zeroTable-lable">筛选数量<span style="color: red;">*</span></td>
                        <td name='screenNumber'></td>
                    </tr>
                    <tr>
                        <td class="qbdms-zeroTable-lable">不合格数<span style="color: red;">*</span></td>
                        <td name='unqualifiedNumber'></td>
                        <td class="qbdms-zeroTable-lable">合格判据<span style="color: red;">*</span></td>
                        <td name='qualifiedCriterion'></td>
                        <td class="qbdms-zeroTable-lable">实测值<span style="color: red;">*</span></td>
                        <td name='measuredValue'></td>
                    </tr>
                    <tr>
                        <td class="qbdms-zeroTable-lable">生产单位<span style="color: red;">*</span></td>
                        <td name='productionUnit'></td>
                        <td class="qbdms-zeroTable-lable">工程型号<span style="color: red;">*</span></td>
                        <td name=''>
                            <@dicSelect.dic name="projectModel" nodeKey="gcxh" verify="required" reqtext="工程型号是必填项"/>
                        </td>
                        <td class="qbdms-zeroTable-lable">供应商<span style="color: red;">*</span></td>
                        <td name=''>
                            <select name="supplier" lay-verify="required" lay-reqtext="供应商是必填项" maxlength="50"></select>
                        </td>
                    </tr>
                    <tr>
                        <td class="qbdms-zeroTable-lable">是否合格供方<span style="color: red;">*</span></td>
                        <td name=''>
                            <select name="qualifiedSuppliers" lay-verify="required" lay-reqtext="是否合格供方是必填项"  maxlength="50">
                                <option></option>
                                <option value="是">是</option>
                                <option value="否">否</option>
                            </select>
                        </td>
                        <td class="qbdms-zeroTable-lable">是否选用目录<span style="color: red;">*</span></td>
                        <td name=''>
                            <select name="catalogSelection" lay-verify="required" lay-reqtext="是否选用目录是必填项"  maxlength="50">
                                <option></option>
                                <option value="是">是</option>
                                <option value="否">否</option>
                            </select>
                        </td>
                        <td class="qbdms-zeroTable-lable">筛选报告编号<span style="color: red;">*</span></td>
                        <td name='screenReportid'></td>
                    </tr>
                    <tr>
                        <td class="qbdms-zeroTable-lable">元器件分类<span style="color: red;">*</span></td>
                        <td name=''>
                            <@dicSelect.dic name="componentType" nodeKey="yqjfl" verify="required" reqtext="元器件分类是必填项"/>
                        </td>
                        <td class="qbdms-zeroTable-lable">筛选技术条件<span style="color: red;">*</span></td>
                        <td name='screenTechconditions'></td>
                        <td class="qbdms-zeroTable-lable">筛选单位<span style="color: red;">*</span></td>
                        <td name='screenUnits'></td>
                    </tr>
                    <tr>
                        <td class="qbdms-zeroTable-lable">筛选类别<span style="color: red;">*</span></td>
                        <td name=''>
                            <@dicSelect.dic name="screenCategory" nodeKey="sxlb" verify="required" reqtext="筛选类别是必填项"/>
                        </td>
                        <td class="qbdms-zeroTable-lable">送筛单位<span style="color: red;">*</span></td>
                        <td name='screenedUnits'></td>
                        <td class="qbdms-zeroTable-lable">送筛日期<span style="color: red;">*</span></td>
                        <td name='screenDate'></td>
                        <input type="hidden" name="screenDate"  placeholder="请输入"
                               autocomplete="off" class="layui-input  textInput dateTimeFiled time-init" lay-verify="required" lay-reqtext="送筛日期是必填项"
                               maxlength="50" fieldname="screenDate">
                    </tr>
                    <tr>
                        <td class="qbdms-zeroTable-lable">进口/国产</td>
                        <td colspan="5" name=''>
                            <@dicSelect.dic name="source" nodeKey="jk/gc" />
                        </td>
                    </tr>
                    <tr>
                        <td class="qbdms-zeroTable-lable">不合格原因<span style="color: red;">*</span></td>
                        <td colspan="5" name='unqualifiedReason'></td>
                    </tr>



                    </tbody>
                </table>

            </div>

            <#if isClose != 'true'>
                <div class="layui-form-item btnformItem">
                    <p>
                        <button type="reset" id="closeWindow"
                                class="closeWindow layui-btn layui-btn-sm btn-save qbdms-oneBtnLine">返回
                        </button>
                    </p>
                </div>
            </#if>
        </form>
    </div>
</div>



<script src="${ctx}/qbdmsStatic/public/configFile.js"></script>
<script src="${ctx}/layui/layui.js"></script>

<script>
    layui.config({
        base: serverPath.qbdmsPath + staticPath.qbdmsPath //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index','common','laydate','jquery','publicMethods','propsHandle'], function () {
        var laydate = layui.laydate;
        var $ = layui.jquery;
        var common = layui.common;
        var publicMethods = layui.publicMethods;
        var propsHandle = layui.propsHandle;
        var dateTimeFiledLen = $(".dateTimeFiled");

        for(var i=0;i<dateTimeFiledLen.length;i++){
            laydate.render({
                elem: dateTimeFiledLen[i] //指定元素
                ,type: 'date'
                ,trigger: 'click'
            });
        }
        var  defProps = {
                //viewMould: 'form/formDef/view/formDesign/moulds/', // 组件模块 存放文件 *****
                viewMould: 'moulds/', // 组件模块 存放文件 *****
                formAreaInfo: '.formPreview',
                formAreaInfo: 'html',
                temDate: '.temDate',
                uploadFileBtn: '.uploadFileBtn',
                uploadImgBtn: '.uploadImgBtn',
                richTextArea: '.richTextArea',
                selectInput: '.selectInput',
                radioOptionCont: '.radioOptionCont',
                dataLexiTree: '.dataLexiTree',
                selectorBtn: '.selectorBtn'
            },
            temQuery = new propsHandle();  // 实例化模板功能部分

        // 初始化模板功能
        temQuery.initTem({
            selectorBtn: defProps.selectorBtn,
            selectorTemPath: setter.views + defProps.viewMould
        });
        //关闭当前页面
        $("#closeWindow,.closeWindow").click(function () {
            if ("${isClose}" == "true") {
                parent.layer.close(parent.layer.getFrameIndex(window.name));
            }
            window.location.href = serverPath.qbdmsPath + '/qbdms/wQbdComponentscreen/view/list';
        });


        var runId = "${runId}";
        if(runId == null || runId == ''){
            $("#hideAndShow").show();
        }

        var index = parent.layer.getFrameIndex(window.name);
        common.updateForm({
            name:'wQbdComponentscreenDataForm',
            idValue:"${id}",
            primary:"id",
            getCallback: function (data) {
                // $("#tbxx").html("<span class='qbdms-TBinformation'>填报信息:</span><span class='qbdms-TBinformationText'>【" + data.data.filldept + " | " + data.data.fillman + " | " + data.data.filldate + "】</span>");
                $("#tbxx").html("<td class='qbdms-zeroTable-lable'>填报信息:</td><td colspan='5' class=''>【"+data.data.filldept+" | "
                    +data.data.fillman+"  | "+data.data.filldate+"】</td>");
            }
        });

        // 供应商
        var suppliers = eval('${wQbdSuppliers}');
        var initXHDH = function (optionObj, item) {
            optionObj.text = item.suppliername;
            optionObj.value = item.suppliercode;
        };
        common.initDicData("supplier", suppliers, "", initXHDH);

        publicMethods.bottomFixd()
        $("body *").not("#closeWindow").attr("disabled", "disabled");

    });
</script>
</body>
</html>